<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Dom.addClass</title>
    <script src="../src/dom.js"></script>
</head>
<body>
<div id="test" style="margin: 10px;">click me</div>
<ul>
    <li class="li1"><a href="#1">click me</a></li>
    <li class="li2"><a href="#2">click me</a></li>
    <li class="li3 item3"><a href="#3">click me</a></li>
</ul>

<script type="text/javascript">

    console.log(Dom.addClass(Dom.findByTagName('li'), "new-class"));//assign new-class to all li elements
    console.log(Dom.addClass(Dom.findByTagName('li')[1], ["new-class-2", "new-class-3"]));//assignes 2 new classes
    console.log(Dom.getClass(Dom.findByTagName('li')[0]));//return ["li1", "new-class"]

</script>
</body>
</html>